﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Data;
using AudioCore.Common;

namespace AudioCore.DAO
{
    internal class VisitedDao : BaseDao
    {
        internal VisitedDao()
            : base("Visited", "VisitedID")
        {
            db = DatabaseFactory.CreateDatabase(Constant.DATABASE);
        }

        internal DataTable GetVisisted(int accountID, int itemID, int itemType)
        {
            string[] columns = new string[] { "AccountID", "ItemID", "ItemTypeID" };
            object[] values = new object[] { accountID, itemID, itemType };
            return SelectEntityByColumnNames(columns, values);
        }
    }
}
